 //
//  GHMacroDefine.swift
//  KYC2C
//
//  Created by Guanghui Liao on 12/15/17.
//  Copyright © 2017 liaoworking. All rights reserved.
//

import Foundation
import SwifterSwift
import RxCocoa
import RxSwift
import Alamofire
 
//乌红色主色调E90019
let AppMainColor = UIColor.init(hexString: "#d53934")
//背景色
 let AppBGColor = UIColor.init(hexString: "#F3F8FB")

//黑色
let BLACK_COLOR = UIColor.black
//白色
let WHITE_COLOR = UIColor.white

//屏幕的宽度
let K_WIDTH = UIScreen.main.bounds.width
//屏幕的高度
let K_HEIGHT = UIScreen.main.bounds.height
// 随机色
let randomColor = UIColor.random
// UUID
 let UUID =  UIDevice.current.identifierForVendor!.uuidString
/// 是否是debug
let isDebug: Bool = {
    var isDebug = false
    // function with a side effect and Bool return value that we can pass into assert()
    func set(debug: Bool) -> Bool {
        isDebug = debug
        return isDebug
    }
    // assert:
    // "Condition is only evaluated in playgrounds and -Onone builds."
    // so isDebug is never changed to true in Release builds
    assert(set(debug: true))
    return isDebug
}()

 var isNetworkConnect: Bool = {
    let network = NetworkReachabilityManager()
    return network?.isReachable ?? true //无返回就默认网络已连接
 }()


 
//let SGlobalCenter = AppGlobalDataCenter.default()
